package com.pishou.code.thread;

import android.content.Context;

import com.pishou.Data;
import com.pishou.code.util.NetWork;

public class UpdateDataLoop extends  Thread {

    @Override
    public void run() {
        while (true){
            try {
                Data.setData(true, false);
            }catch (Exception e){
                e.printStackTrace();
            }
            try {
                // 休眠十分钟
                Thread.sleep(10 * 60 * 1000l);
            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
}
